package com.zmn.plat.business.interfaces.contract;

import javax.servlet.http.HttpServletResponse;

import com.zmn.common.utils.office.excel.ExportExcel;
import com.zmn.mcc.cas.model.LoginStaff;
import com.zmn.plat.model.entity.contract.record.ContractRecordQuery;
import com.zmn.plat.model.vo.contract.record.ContractRecordExportExcelVO;
import com.zmn.plat.model.vo.contract.record.ContractRecordVO;

/**
 * 类描述:跟单内容DocumentaryContentBService
 *
 * @author linfeng
 * @since 2019/10/22/13:53
 */
public interface ContractRecordBService {

    /**
     * 添加合同
     *
     * @param contractRecordVO
     * @param opertor
     * @return
     */
    Integer insert(ContractRecordVO contractRecordVO, String opertor);

    /**
     * 更新合同
     *
     * @param contractRecordVO
     * @param opertor
     */
    void update(ContractRecordVO contractRecordVO, String opertor);

    /**
     * 导出合同管理列表
     *
     * @param query
     * @return
     * @author linfeng
     * @since 16:38 2020/05/22
     */
    ExportExcel<ContractRecordExportExcelVO> exportExcel(ContractRecordQuery query, LoginStaff staff);

    /**
     * 根据合同ID下载单个附件
     *
     * @param response
     * @param url
     */
    void downLoadFile(HttpServletResponse response, String url);
}
